#pragma once
#ifndef SERIAL_H
#define SERIAL_H
#include <iostream>
#include <windows.h>
#include <string>
#include <vector>
#include <iomanip>
#include <chrono>
#include <thread>
#include "Logger.h"
using namespace std;

extern vector<unsigned char> send_readCommand;
#endif
class Serial
{
public:
	HANDLE hCom;
	bool open_serial(wstring com, size_t baudrate);

	bool send_RFID_command(vector<unsigned char> send_command);

	void closeHandle();

	vector<uint8_t> read_RFID_data();

	Serial() = default;
};

